home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / include / user / sched.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-30  |  1.1 KB  |  36 lines

  1. /*
  2.  * sched.h --
  3.  *
  4.  *    Instrumentation about system load, etc.  This header file contains 
  5.  *    the remains of the native Sprite kernel/sched.h.
  6.  *
  7.  * Copyright 1992 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that this copyright
  11.  * notice appears in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Header: /user5/kupfer/spriteserver/include/user/RCS/sched.h,v 1.1 92/04/29 22:34:20 kupfer Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _SCHED
  20. #define _SCHED
  21.  
  22. #include <spriteTime.h>
  23.  
  24. #define MACH_NUM_LOAD_VALUES    3
  25.  
  26. /* 
  27.  * System instrumentation returned by the Sys_Stats SYS_SCHED_STATS call.
  28.  */
  29.  
  30. typedef struct {
  31.     double avenrun[MACH_NUM_LOAD_VALUES]; /* load average from Mach */
  32.     Time noUserInput;        /* time since last console input */
  33. } Sched_Instrument;
  34.  
  35. #endif /* _SCHED */
  36.